<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1" />
		<meta http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>财富共赢</title>
		<!--bootstrap-css-->
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/Ak/lib/bootstrap/css/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/Ak/css/base.css" />
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/Ak/css/style.css" />
		<link href="__PUBLIC__/upload/css.css" rel="stylesheet" media="screen" type="text/css">
		<!--[if lte IE 9]>
		    <script type="text/javascript" src="__PUBLIC__/Ak/lib/html5shiv/html5shiv.min.js" ></script>
		    <script type="text/javascript" src="__PUBLIC__/Ak/Dt/lib/html5shiv/html5shiv-printshiv.min.js" ></script>
	    <![endif]-->
		<script type="text/javascript" src="__PUBLIC__/Ak/lib/bootstrap/js/jquery.min.js"></script>

		<script type="text/javascript" src="__PUBLIC__/Ak/lib/bootstrap/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/Ak/js/yxk.js"></script>
		<script type="text/javascript" src="__PUBLIC__/Dt/lib/jedate/jedate.min.js" ></script>
        <script type="text/javascript" src="__PUBLIC__/upload/jquery.form.js"></script>
        <script type="text/javascript" src="__PUBLIC__/upload/upload.js"></script>
	<script>
    //倒计时
    function daojishi(times,ti,i){
        ti = setInterval(daoji,1000);
        function daoji(){

            if(times <= 0){
                clearInterval(ti);
                $('#lasttime'+i).html(0);
                return;
            }else{
                times--;
            }
            var hours = parseInt(times/3600) < 10 ? "0"+ parseInt((times/3600)) : parseInt(times/3600);
            var second = times%60 < 10 ? "0"+ (times%60) : times%60;
            var minutes = ((times-hours*3600-second)/60)//- < 10 ? "0"+ (times-second)/60 : ((times-second)/60);
            $('#lasttime'+i).html(hours+":"+minutes+":"+second);


        }

    }

</script>
	</head>

	<body>
		<div id="main">
			<header>
				<div class="top_bar">
					
					<a href="javascript:;" id="retu"><i class="glyphicon glyphicon-menu-left"></i></a>
					<p class="text-center m0 h4">申请提现</p>
				</div>
				<div style="height: 40px;"></div>
			</header>
			<section class="sec ls">
				<table class="table">
					 <volist name="room" id="vo">
					<tr>
						<td>
							<p>排单号：{$vo.orderid}</p>
							<p>{$vo.createtime|date='Y-m-d H:m:s',###}</p>
						</td>
						<td>
							<p class="text_4CD964">RMB {$vo.price}</p>
							<p>状态：<span class="color-d84a38">
                            <switch name="vo.status">
                                <case value="0">等待匹配</case>
                                <case value="1">等待收款</case>
                                <case value="2">等待收款</case>
                                <case value="3">完成</case>

                            </switch></p>
						</td>
					</tr>
					 <volist name="vo.sub" id="vo1">
                    <tr>
						<td>
							<p>匹配用户：{$vo1.username}</p>
							<p>{$vo.begintime|date='Y-m-d H:i:s',###}</p>
						</td>
						<td>
							<p class="text_4CD964">RMB <if condition="vo.price gt vo1.price">
                                    <php>if($vo['price']>$vo1['price']){</php>
                                    {$vo1.price}
                                    <php>}else{</php>
                                    {$vo.price}
                                    <php>}</php>
                                </if></p>
							<p>状态：<switch name="vo1.status">
                             <case value="1">
                            等待确认收款
                             </case>
                             <case value="2">
                                已经收款
                             </case>
                             <case value="3">
                                 已经收款，订单完成
                             </case>
                         </switch></p>
						</td>
					</tr>

					<tr>
                    <td colspan="2">
                    	<table class="table">
                                <tr>
                                    <td width="120px" align="left">云付通姓名：</td>
                                    <td align="left">{$vo1.bankname}</td>
                                </tr>
                                <tr>
                                    <td align="left">云付通账号：</td>
                                    <td align="left">{$vo1.bankcode}/ </td>
                                </tr>
                                <tr>
                                    <td align="left">联络接收人：</td>
                                    <td align="left">{$vo1.realname}:{$vo1.mobile}</td>
                                </tr>
                                <tr>
                                    <td align="left">联络推荐人：</td>
                                    <td align="left">{$vo1.trealname}:{$vo1.tmobile}</td>
                                </tr>
                                <tr>
                                    <td align="left">收款倒计时：</td>
                                    <td align="left"> <if condition="$vo1.status eq 2">
                                        <div  id="lasttime{$vo1.id}"> </div>
                                        <script>daojishi("<php>echo 2*3600-(time()-$vo1['begintime']);</php>",'it{$vo1.id}','{$vo1.id}');</script>
                                        <else />
                                        0
                                    </if></td>
                                </tr>
                                <tr>
                                    <td align="left">凭据图片</td>
                                    <td align="left">
                                          <if condition="$vo1.pic eq ''">
                                          <img   src="__PUBLIC__/upload/bg.jpg" class="btnbg" style="width:100px;height:100px;left:0px;z-Index:-1;"/>
                                          
                                          <else />
                                          <a href="{$vo1.pic}" target="_blank"><img   src="{$vo1.pic}" class="btnbg" style="width:100px;height:100px;left:0px;z-Index:-1;"/></a>
                                          </if>
                                    </td>
                                </tr>
                            </table>
                    	</td>
					</tr>
					<tr>
                    <td id="pull{$vo.id}_{$vo1.id}" colspan="2">
                    	<switch name="vo1.status">
                                <case value="1">
									 等待收款
                                </case>
                                <case value="2">
                                    请输入安全密码：<input id="password{$vo.id}_{$vo1.id}" type="password" name="password{$vo.id}_{$vo1.id}" placeholder="输入安全密码" ><br><br>
                                    <button type="button" id="button{$vo.id}_{$vo1.id}" class="btn btn-primary" onclick="pipeifinish('{$vo.id}','{$vo1.id}')">确认收款</button>
                                </case>
                                <case value="3">
                                    已经收款，订单完成
                                </case>
                            </switch></td>
					</tr>
                        </volist>

					</volist>
					
				</table>
				
				<!--无记录显示以下代码-->
				<!--<div class="text-center" style="margin-top: 50px;">
					<img src="images/none.png"/>
					<p class="h4">暂无账单</p>
				</div>-->
			</section>
            <include file="./Tm/Ak/Menu.html" />
		</div>
	</body>
</html>

<script src="__PUBLIC__/Ak/js/lgethelp.js" type="text/javascript" charset="utf-8"></script>
